/** 自助服务 */
import request from '@/utils/request'

/** 处理报修信息
 * @params {object} data
 */
export function putAppSelfService(data) {
  return request({
    url: '/call-center/api/v1/appSelfService',
    method: 'PUT',
    data
  })
}
/** 查询所有
 */
export function getAppSelfService() {
  return request({
    url: '/call-center/api/v1/appSelfService/',
    method: 'GET'
  })
}
/** 根据ID查询自助服务单详情
 * @params {string} id
 */
export function getAppSelfServiceById(id) {
  return request({
    url: `/call-center/api/v1/appSelfService/${id}`,
    method: 'GET'
  })
}
/** 分页查询
 * @params {object} data
 */
export function pageAppSelfService(data) {
  return request({
    url: '/call-center/api/v1/appSelfService/page',
    method: 'POST',
    data
  })
}
